﻿<UserControl x:Class="WeatherFrame.MultiDayView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:my="clr-namespace:WeatherFrame"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">
    <Grid>
        <ItemsControl ItemsSource="{Binding}">
        <ItemsControl.ItemsPanel>
            <ItemsPanelTemplate>
                <StackPanel Orientation="Horizontal"/>
            </ItemsPanelTemplate>
        </ItemsControl.ItemsPanel>
        <ItemsControl.ItemTemplate>
            <DataTemplate>
                <Grid Width="160">
                <Image Source="{Binding ImageUri}" Stretch="UniformToFill"/>

                    <my:HighVisTextBlock Opacity="0.75" Tag="{Binding TimePeriodShort}" FontSize="56" HorizontalAlignment="Center"/>
                    <my:HighVisWeatherIcon Width="94" Height="94" Margin="3" Opacity="0.8"
                                           VerticalAlignment="Bottom" DataContext="{Binding IconPath}"/>
                </Grid>
            </DataTemplate>
        </ItemsControl.ItemTemplate>
    </ItemsControl>
        <my:HighVisTextBlock Opacity="0.5" Tag="{Binding Location}"
                               FontSize="20" Margin="5"/>
    </Grid>
</UserControl>
